package ch5.ext;

public class PetDoctorTest {

	public static void main(String[] args) {
		// Pet p2 = new Pet("xx", 2, 3, "tt");

		AnimalDoctor am = new AnimalDoctor("老吴", "13809034939");

		Pet p0 = new GoldFish("小红", 89, 91, "金龙鱼");

		GoldFish p = new GoldFish("大红", 89, 91, "金龙鱼");
		am.cure(p);
		System.out.println(">>>>>>>>>>>>>>>>>>");
		Dog d = new Dog("大黄", 17, 87, "狼狗");
		System.out.println(d);
		am.cure(d);
		System.out.println(d);

		Tiger t = new Tiger();
		am.cure(t);
	}

}
